﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Model
{
    public class Idea
    {
        /// <summary>
        /// Idea唯一标志
        /// </summary>
        private int _iid;
        public int IID
        {
            get
            {
                return _iid;
            }

            set
            {
                _iid = value;
            }
        }

        /// <summary>
        /// 标题
        /// </summary>
        private string _title;
        public string Title
        {
            get
            {
                return _title;
            }

            set
            {
                _title = value;
            }
        }

        /// <summary>
        /// 内容
        /// </summary>
        private string _content;
        public string Content
        {
            get
            {
                return _content;
            }

            set
            {
                _content = value;
            }
        }

        /// <summary>
        /// 状态
        /// </summary>
        private int _status;
        public int Status
        {
            get
            {
                return _status;
            }

            set
            {
                _status = value;
            }
        }

        public string StatusName
        {
            get
            {
                string tmpstatus = "";
                switch (_status)
                {
                    case 1:
                        tmpstatus = "New";
                        break;
                    case 2:
                        tmpstatus = "Being Reviewed";
                        break;
                    case 3:
                        tmpstatus = "Returned";
                        break;
                    case 4:
                        tmpstatus = "Being Implemented";
                        break;
                }
                return tmpstatus;
            }
        }

        /// <summary>
        /// 附件
        /// </summary>
        private string _attachments;
        public string Attachments
        {
            get
            {
                return _attachments;
            }

            set
            {
                _attachments = value;
            }
        }

        /// <summary>
        /// 投票数
        /// </summary>
        private int _votes;
        public int Votes
        {
            get
            {
                return _votes;
            }

            set
            {
                _votes = value;
            }
        }

        /// <summary>
        /// 所属类别
        /// </summary>
        private int _categoryType;
        public int CategoryType
        {
            get
            {
                return _categoryType;
            }

            set
            {
                _categoryType = value;
            }
        }

        public string CategoryName
        {
            get
            {
                string tmptype = "";
                switch (_categoryType)
                {
                    case 1:
                        tmptype = "Process Improvement";
                        break;
                    case 2:
                        tmptype = "Product Improvement";
                        break;
                    case 4:
                        tmptype = "Customer Experiences";
                        break;
                    case 3:
                        tmptype = "Business Model";
                        break;
                }
                return tmptype;
            }
        }

        /// <summary>
        /// 创建人
        /// </summary>
        private string _createdby;
        public string CreatedBy
        {
            get
            {
                return _createdby;
            }

            set
            {
                _createdby = value;
            }
        }

        /// <summary>
        /// 创建时间
        /// </summary>
        private string _createdtime;
        public string CreatedTime
        {
            get
            {
                return _createdtime;
            }

            set
            {
                _createdtime = value;
            }
        }

        private string _fname;
        public string FirstName
        {
            get
            {
                return _fname;
            }

            set
            {
                _fname = value;
            }
        }

        private string _lname;
        public string LastName
        {
            get
            {
                return _lname;
            }

            set
            {
                _lname = value;
            }
        }

        private int _maptype;
        public int MapType
        {
            get
            {
                return _maptype;
            }

            set
            {
                _maptype = value;
            }
        }

        private string _maptypes;
        public string MapTypes
        {
            get
            {
                return _maptypes;
            }

            set
            {
                _maptypes = value;
            }
        }

        private int _commentnum;
        public int CommentNum
        {
            get
            {
                return _commentnum;
            }
            set
            {
                _commentnum = value;
            }
        }

    }
}
